const throttle = (scrollTop,tm)=>{
            window.onscroll = function () {
                clearTimeout(tm.value)
                tm.value = setTimeout(()=>{
                    scrollTop.value = document.documentElement.scrollTop || document.body.scrollTop;
                    // console.log(scrollTop.value,'界面滚动')
                },0);
            }
}
export default throttle
